﻿class InvokeUIServiceInfo {
    constructor() { this._args = []; }
    get ServiceName() { return this._serviceName; }
    set ServiceName(val) { this._serviceName = val; }
    get MethodName() { return this._methodName; }
    set MethodName(val) { this._methodName = val; }
    get Args() { return this._args; }
}
async function InvokeUIService(info) {
    let result = await WebAppCallNative(info);
    if (result.Status) {
        return result.Value;
    }
    else {
        throw result.Value;
    }
}